package com.example;

import com.example.service.PhoneService;
import com.example.service.UserService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Auther: ${USER}
 * @Date: ${YEAR}/${MONTH}/${DAY}/${TIME}
 * @Description:
 */
public class Main {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        PhoneService phoneService = context.getBean(PhoneService.class);
        UserService userService = context.getBean(UserService.class);
        //phoneService.sayHello();
        //userService.sayHello();
        phoneService.sayBye();
    }
}